package com.ruoyi.common.constant;

/**
 * 通用常量信息
 *
 * @author ruoyi
 */
public class Constants {

    public static final String RULE_TYPE_APPLY = "apply";

    public static final String RULE_TYPE_LOAN = "loan";

    public static final String SPLIT_STR = "&";

    public static final String SERIALNO_SPLIT = "-";

    /**
     * 流水号场景
     */
    //放款
    public static final String LOAN = "-10";
    //退款
    public static final String REFUND = "-20";
    //提现
    public static final String WITHDRAWAL = "-30";
    //还款
    public static final String REPAYMENT = "-40";
    //绑卡
    public static final String BINDING_CARDS = "-41";
    //延期
    public static final String DELAY = "-50";
    //钱包延期
    public static final String PURSE_EXTENSION = "-51";
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 登录用户 redis key
     */
    public static final String APP_LOGIN_USER_TOKEN_MAPPING_KEY = "app_mapping_tokens:";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 验证码有效期（分钟）
     */
    public static final Integer CAPTCHA_EXPIRATION = 2;

    /**
     * 令牌
     */
    public static final String TOKEN = "token";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "login_user_key";

    /**
     * 用户ID
     */
    public static final String JWT_USERID = "userid";

    /**
     * 用户名称
     */
    public static final String JWT_USERNAME = "sub";

    public static final String INTEREST = "0% Interest";
    public static final String DISCOUNT = "Discount";
    public static final String FLEXIBLE_REPAY = "Flexible repay";
    public static final String EARN_MONEY = "Earn money";
    public static final String INCREASE = "Increase limit";
    /**
     * 用户头像
     */
    public static final String JWT_AVATAR = "avatar";

    /**
     * 创建时间
     */
    public static final String JWT_CREATED = "created";

    /**
     * 用户权限
     */
    public static final String JWT_AUTHORITIES = "authorities";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
     * 是否默认
     */
    public static final String isDefault = "Y";

    /**
     * mongoDB 集合
     */
    public static final String MANGO_EXCEPTION_LOG = "exceptionLog";
    public static final String INFO_LOG = "infoLog";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_SMS_DICT_KEY = "sys_dict:sms";

    public static final String APP_LIST = "applist:";

    //通讯录最新表的reid名
    public static final String APPLY_CONTACTS_NEW_TABLE = "apply_contacts_new_table";
    public static final String DEVICE_CONTACTS_NEW_TABLE = "device_contacts_new_table";

    //通讯录表名
    public static final String CONTACTS_TABLE_NAME = "cust_contacts_list_";
    public static final String DEVICE_CONTACTS_TABLE_NAME = "device_contacts_list_";

    public static final String CURRENT_NAME = "monnifyExtApiRetry_run";
    //还款类别
    public static final String REPAYMENT_CATEGORY = "Operate-card";

    /**
     * 提额
     */
    public class RaiseLimit {

        //初始授信
        public static final String ADJUST_TYPE_INIT = "0";
        //内部提额
        public static final String ADJUST_TYPE_INNER = "1";
        //驾驶证提额
        public static final String ADJUST_TYPE_LICENSE = "2";
        //人脸比对提额
        public static final String ADJUST_TYPE_FACE_RECOGNITION = "3";
        //银行卡提额
        public static final String ADJUST_TYPE_BANK_CARD = "4";
        //自动化提额度
        public static final String ADJUST_TYPE_AUTOMATIC_ALLOCATION = "5";
        //补充信息提额
        public static final String ADJUST_TYPE_REPLENISH_INFO = "6";
    }

}
